///*class Base{
//    public int a = 1;
//    public int b = 2;
//
//    public void methodA(){
//        System.out.println("父类中的成员方法");
//    }
//
//}
//class Derived extends Base{
//     public int c =3;
//     public int a = 4;
//
//     public void methodA() {
//         System.out.println("子类中的成员方法");
//    }
//
//    public void methodB() {
//        super.methodA();
//        this.methodA();
//    }
//     public void method(){
//         System.out.println(this.a);
//         System.out.println(super.a);
//         System.out.println(this.b);
//         System.out.println(this.c);
//    }
//}
//public class Test {
//    public static void main(String[] args) {
//        Derived derived = new Derived();
//        System.out.println(derived.b);
//    }
//}*/
///*       Derived derived = new Derived();
// *//*        System.out.println(derived.a);
//        System.out.println(derived.b);
//        System.out.println(derived.c);*//*
//        derived.methodB();*/
//
//
//class Animal{
//    public String name;
//    public int age;
//    public String color;
//
//    public Animal(String name, int age) {
//        this.name = name;
//        this.age = age;
//    }
//}
//class Dog extends Animal{
//    public Dog(String name, int age) {
//        super(name, age);
//    }
//    public void wang(){
//        System.out.println(name+"汪汪汪");
//    }
//}
//
//public class Test{
//    public static void main(String[] args) {
//        Animal animal =new Dog("小狗",10);
//        animal.wang();
//    }
//}



import java.util.Scanner;

public class Test {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNextInt()) {
            int x = scanner.nextInt();
            int y = scanner.nextInt();
            int z = scanner.nextInt();
            Sub sub = new Sub(x, y, z);
            System.out.println(sub.calculate());
        }
    }

}

class Base {

    private int x;
    private int y;

    public Base(int x, int y) {
        this.x = x;
        this.y = y;
    }

    public int getX() {
        return x;
    }

    public int getY() {
        return y;
    }

}

class Sub extends Base {

    private int z;

    public Sub(int x, int y, int z) {
       super(x, y);
       this.z=z;
    }

    public int getZ() {
        return z;
    }

    public int calculate() {
        return super.getX() * super.getY() * this.getZ();
    }

}
